$(function() {

	
	//游戏攻略
	/*显示两行之后...显示*/
	var tex = $(".tdp4");
		 console.log(tex)
				var objString = tex.text();
				var objLength = tex.text().length;
				if(objLength >30) {
					tex.attr('title', objString);
					objString = tex.text(objString.substring(0,30) + '...');
				}

	/*tex.each(function() {
		var texts = $(this).text();
		var newstr = texts.replace(" ", '');
		var newstr2 = newstr.substring(0, 35) + "....";
		$(this).text(newstr2);
	})*/

})